package com.cssl.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.cssl.dao.SalSalaryMapper;
import com.cssl.pojo.SalSalary;
import com.cssl.pojo.SysStaff;
import com.cssl.service.SalSalaryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author 李泽浩
* @description 针对表【sal_salary(员工工资表)】的数据库操作Service实现
* @createDate 2023-05-24 17:26:53
*/
@Service
public class SalSalaryServiceImpl extends ServiceImpl<SalSalaryMapper, SalSalary>
    implements SalSalaryService {

    @Resource
    private SalSalaryMapper mapper;

    @Override
    public IPage<SalSalary> selet(IPage<SysStaff> page, QueryWrapper<SysStaff> ew) {
        return mapper.select(page,ew);
    }

    @Override
    public List<SalSalary> select2(QueryWrapper<SysStaff> ew) {
        return mapper.select2(ew);
    }
}




